.class public Lcom/htc/android/footprints/service/LocationAgentService;
.super Landroid/app/Service;
.source "LocationAgentService.java"


# static fields
.field private static final HANDLER_SHUTDOWN_AGENT:I = 0x64

.field private static final MODE_FIX_GPS:I = 0xd

.field private static final MODE_FIX_NETWORK:I = 0xe

.field private static final MODE_STOP:I = 0xa

.field private static final MODE_TIMEOUT:I = 0xc

.field private static final MODE_TRACKING:I = 0xb

.field private static final TAG:Ljava/lang/String; = "LocationAgentService"


# instance fields
.field private clientList:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lcom/htc/android/footprints/ILocationAgentCallback;",
            ">;"
        }
    .end annotation
.end field

.field private mAgent:Lcom/htc/android/footprints/service/LocationAgent;

.field private final mBinder:Lcom/htc/android/footprints/ILocationAgentService$Stub;


# direct methods
.method public constructor <init>()V
    .locals 2

    .prologue
    .line 28
    invoke-direct {p0}, Landroid/app/Service;-><init>()V

    .line 26
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/htc/android/footprints/service/LocationAgentService;->clientList:Ljava/util/ArrayList;

    .line 97
    new-instance v0, Lcom/htc/android/footprints/service/LocationAgentService$2;

    invoke-direct {v0, p0}, Lcom/htc/android/footprints/service/LocationAgentService$2;-><init>(Lcom/htc/android/footprints/service/LocationAgentService;)V

    iput-object v0, p0, Lcom/htc/android/footprints/service/LocationAgentService;->mBinder:Lcom/htc/android/footprints/ILocationAgentService$Stub;

    .line 29
    const-string v0, "LocationAgentService"

    const-string v1, "LocationAgentService CTOR"

    invoke-static {v0, v1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    .line 30
    return-void
.end method

.method static synthetic access$000(Lcom/htc/android/footprints/service/LocationAgentService;)Ljava/util/ArrayList;
    .locals 1
    .parameter "x0"

    .prologue
    .line 15
    iget-object v0, p0, Lcom/htc/android/footprints/service/LocationAgentService;->clientList:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic access$100(Lcom/htc/android/footprints/service/LocationAgentService;)Lcom/htc/android/footprints/ILocationAgentService$Stub;
    .locals 1
    .parameter "x0"

    .prologue
    .line 15
    iget-object v0, p0, Lcom/htc/android/footprints/service/LocationAgentService;->mBinder:Lcom/htc/android/footprints/ILocationAgentService$Stub;

    return-object v0
.end method

.method static synthetic access$200(Lcom/htc/android/footprints/service/LocationAgentService;)Lcom/htc/android/footprints/service/LocationAgent;
    .locals 1
    .parameter "x0"

    .prologue
    .line 15
    iget-object v0, p0, Lcom/htc/android/footprints/service/LocationAgentService;->mAgent:Lcom/htc/android/footprints/service/LocationAgent;

    return-object v0
.end method


# virtual methods
.method public onBind(Landroid/content/Intent;)Landroid/os/IBinder;
    .locals 2
    .parameter "intent"

    .prologue
    .line 92
    const-string v0, "LocationAgentService"

    const-string v1, "Service onBind"

    invoke-static {v0, v1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    .line 94
    iget-object v0, p0, Lcom/htc/android/footprints/service/LocationAgentService;->mBinder:Lcom/htc/android/footprints/ILocationAgentService$Stub;

    return-object v0
.end method

.method public onCreate()V
    .locals 2

    .prologue
    .line 34
    invoke-super {p0}, Landroid/app/Service;->onCreate()V

    .line 35
    const-string v0, "LocationAgentService"

    const-string v1, "Service onCreate"

    invoke-static {v0, v1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    .line 37
    invoke-virtual {p0}, Lcom/htc/android/footprints/service/LocationAgentService;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/htc/android/footprints/service/LocationAgent;->instance(Landroid/content/Context;)Lcom/htc/android/footprints/service/LocationAgent;

    move-result-object v0

    iput-object v0, p0, Lcom/htc/android/footprints/service/LocationAgentService;->mAgent:Lcom/htc/android/footprints/service/LocationAgent;

    .line 38
    iget-object v0, p0, Lcom/htc/android/footprints/service/LocationAgentService;->mAgent:Lcom/htc/android/footprints/service/LocationAgent;

    new-instance v1, Lcom/htc/android/footprints/service/LocationAgentService$1;

    invoke-direct {v1, p0}, Lcom/htc/android/footprints/service/LocationAgentService$1;-><init>(Lcom/htc/android/footprints/service/LocationAgentService;)V

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/service/LocationAgent;->setAgentListener(Lcom/htc/android/footprints/service/LocationAgent$AgentListener;)V

    .line 79
    return-void
.end method

.method public onDestroy()V
    .locals 2

    .prologue
    .line 83
    const-string v0, "LocationAgentService"

    const-string v1, "Service onDestroy"

    invoke-static {v0, v1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    .line 84
    iget-object v0, p0, Lcom/htc/android/footprints/service/LocationAgentService;->clientList:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    .line 87
    invoke-super {p0}, Landroid/app/Service;->onDestroy()V

    .line 88
    return-void
.end method
